.header {
  position: relative;
  height: 100px;
  width: 1226px;
  margin: 0 auto;
}
.logo {
  float: left;
  a {
    margin-top: 22px;
    position: relative;
    display: block;
    width: 55px;
    height: 55px;
    overflow: hidden;
    background-color: #ff6700;
    text-decoration: none;
    font-size: 12px;
    color: white;
    line-height: 55px;
    text-align: center;
    &:before {
      position: absolute;
      left: 0;
      top: 0;
      z-index: 1;
      width: 55px;
      height: 55px;
      content: '';
      transition: all 0.2s;
      background: url(../../assets/mi-logo.png) no-repeat 50% 50%;
      opacity: 1;
    }
    &:after {
      background: url(../../assets/mi-home.png) no-repeat 50% 50%;
      opacity: 0;
      margin-left: -55px;
    }
  }
}
.nav {
  width: calc(100% - 351px);
  float: left;
  ul {
    list-style-type: none;
    margin: 0 auto;
    text-align: center;
    padding: 0;
    float: left;
    margin-left: 130px;
  }
  li {
    height: 100px;
    box-sizing: border-box;
    float: left;
    padding: 0 10px 38px;
    line-height: 100px;
    cursor: pointer;
  }
}
.search {
  position: relative;
  float: right;
  margin-top: 22px;
  width: 296px;
  input {
    float: left;
    border: 1px solid #e0e0e0;
    outline: 0;
    width: 223px;
    height: 48px;
    padding: 0 10px;
    font-size: 14px;
    line-height: 48px;

    box-sizing: border-box;
    // box-sizing: border-box;
    // &:focus{
    //     outline: 1px solid  #ff6700;
    // }
  }
  button {
    float: left;
    box-sizing: border-box;
    border: 1px solid #e0e0e0;
    border-left: none;
    outline: 0;
    height: 48px;
    padding: 0 14px;
    font-size: 14px;
    line-height: 48px;
    background-color: white;
    // position: relative;
    // top: 0;
    &:hover {
      background-color: #ff6700;
      color: white;
      cursor: pointer;
      border-color: #ff6700;
    }
  }
  .hotWords {
    position: absolute;
    top: 12px;
    left: 12px;
    a {
      display: inline-block;
      margin-left: 5px;
      padding: 0 5px;
      font-size: 12px;
      background: #eee;
      color: #757575;
      -webkit-transition: all 0.2s;
      transition: all 0.2s;
      text-decoration: none;
      &:hover {
        background-color: #ff6700;
        color: white;
      }
    }
  }
  .keywordList {
    z-index: 99;
    top: 48px;
    position: absolute;
    background-color: white;
    border: 1px solid #ff6700;
    width: 223px;
    box-sizing: border-box;
    border-top: none;
    ul {
      margin: 0;
      padding: 0;
      list-style-type: none;
      li a {
        text-decoration: none;
        font-size: 12px;
        color: #424242;
        padding: 6px 15px;
        display: block;
      }
    }
  }
}
